import request from '@/utils/request';
export const serviceHead = '/archives'; // 项目前缀

// 查询产品预设发件人信息列表
export function getListService (params) {
  return request({
    url: `${serviceHead}/shipper/list`,
    method: 'get',
    params
  });
}

// 查询产品预设发件人信息详细
export function getDetailService (id) {
  return request({
    url: `${serviceHead}/shipper/${id}`,
    method: 'get'
  });
}

// 新增产品预设发件人信息
export function addService (params) {
  return request({
    url: `${serviceHead}/shipper`,
    method: 'post',
    data: params
  });
}

// 修改产品预设发件人信息
export function updateService (params) {
  return request({
    url: `${serviceHead}/shipper`,
    method: 'put',
    data: params
  });
}

// 删除产品预设发件人信息
export function delService (id) {
  return request({
    url: `${serviceHead}/shipper/${id}`,
    method: 'delete'
  });
}